package fr.perso.ppo.springintegration;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.integration.Message;
import org.springframework.integration.splitter.AbstractMessageSplitter;

public class NewPaymentSplitter extends AbstractMessageSplitter{
	private static Logger log = LoggerFactory.getLogger(NewPaymentSplitter.class);
	
	
	@Override
	protected Object splitMessage(Message<?> message) {
		log.debug("****split***START****** {} ********************" , message.getPayload().toString());

		List<?> payload = (List<?>) message.getPayload();
		log.debug("************* {} ********************" , payload.size());
		
		return payload;
	}

}
